package com.py.credit.dao;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.DeclarationManagementForm;
import com.py.framework.core.common.Page;

public interface DeclarationManagementFormDao {

	List<DeclarationManagementForm> selectListForPage(@Param(value = "page") Page page,
			@Param(value = "root_id") String root_id, @Param(value = "collection_type") String collection_type);

	List<DeclarationManagementForm> selectTable(@Param(value = "list") List<String> list,
			@Param(value = "tableString") String tableString);

	List<DeclarationManagementForm> selectAllList(@Param(value = "root_id") String root_id,
			@Param(value = "collection_type") String collection_type);

	String getcontentId();

	void addApplication(
			@Param(value = "datatype")String datatype,
			@Param(value = "dept")String dept, 
			@Param(value = "cube_id")String cube_id,
			@Param(value = "datapath")String datapath,
			@Param(value = "yjpath")String yjpath,
			@Param(value = "mainType")String mainType);

	public List<LinkedHashMap<String, Object>> selectByConditionForPage(@Param(value = "params") Map params,
			@Param(value = "columns") List<String> columns,
			@Param(value = "additionalColumns") String[] additionalColumns,
			@Param(value = "conditions") List<String> conditions, @Param(value = "page") Page page);

	void updateApplication(
			@Param(value = "id")String id, 
			@Param(value = "shjg")String shjg,
			@Param(value = "shyj")String shyj, 
			@Param(value = "shdept")String shdept,
			@Param(value = "shr")String shr);

	List<Map<String, Object>> webSelectHistoryForPage( @Param(value = "page")Page page);


	
	List<LinkedHashMap<String, Object>> selectZzsbTableListForPage(
			@Param(value = "sblb")String sblb, 			
			@Param(value = "ztlx")String ztlx,
			 @Param(value = "page")Page page);
}
